package com.example.anjia03_3z.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CategoryAddNewDTO implements Serializable {

    @ApiModelProperty(value = "品类名称", required = true)
    @NotNull(message = "品类名字不能为空")
    private String name;

    @ApiModelProperty(value = "品类父级ID", required = true)
    @NotNull(message = "品类父级ID不能为空")
    private Long parentId;

    @ApiModelProperty(value = "品类关键字", required = true)
    @NotNull(message = "品类关键字不能为空")
    private String keywords;

    @ApiModelProperty(value = "品类序号", required = true)
    @NotNull(message = "品类序号不能为空")
    private Integer sort;

    @ApiModelProperty(value = "品类图标", required = true)
    @NotNull(message = "品类图标不能为空")
    private String icon ;

    @ApiModelProperty(value = "品类启用状态", required = true)
    @NotNull(message = "品类启用状态不能为空")
    private Integer enable;

    @ApiModelProperty(value = "品类显示状态", required = true)
    @NotNull(message = "品类显示状态不能为空")
    private Integer isDisplay;
}
